//本地执行，简单的无线电音效
waitUntil {sleep 1; (!isNull (findDisplay 46))};

as_radio_in = false;

(findDisplay 46)displayAddEventHandler["KeyDown",
{
	params ["_displayorcontrol", "_key", "_shift", "_ctrl", "_alt"];
	if(_key == 58
	&& {!as_radio_in})then
	{
		playSound "radio_in";
		as_radio_in = true;
		//player playAction "HandSignalRadio";
	};
}];


(findDisplay 46)displayAddEventHandler["KeyUp",
{
	params ["_displayorcontrol", "_key", "_shift", "_ctrl", "_alt"];
	if(_key == 58)then
	{
		playSound "radio_out";
		as_radio_in = false;
	};
}];